package ModLayer;
import java.util.ArrayList;

/**
 * Write a description of class Sale here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Sale
{
    private ArrayList<String> productList;
    private ArrayList<Integer> quaList;
    private String id;
    private String idCustomer;
    private String idEmployee;
    private String creationDate;
    
    public Sale(String id, String idEmployee, String idCustomer, String creationDate)
    {
        this.id = id;
        productList = new ArrayList<String>();
        quaList = new ArrayList<Integer>();
        this.idCustomer = idCustomer;
        this.idEmployee = idEmployee;
        this.creationDate = creationDate;
    }

    public void setIDCustomer(String id)
    {
        idCustomer = id;
    }

    public void setIDEemployee(String id)
    {
        idEmployee = id;
    }
    
    public String getCreationDate()
    {
        return creationDate;
    }

    public String getIDCustomer()
    {
        return idCustomer;
    }

    public String getIDEmployee()
    {
        return idEmployee;
    }

    public void addProduct(String idproduct, int quantity)
    {
        productList.add(idproduct);
        quaList.add(quantity);
    }

    public void removeProduct(String p)
    {
        productList.remove(productList.size());
        quaList.remove(quaList.size());
    }

    public String getID()
    {
        return id;
    }
    
    public ArrayList<String> getProductList()
    {
        return productList;
    }

    public ArrayList<Integer> getQuaList()
    {
        return quaList;
    }
}